package com.mvvmhabit.org.binding.viewadapter.viewpager

import androidx.databinding.BindingAdapter
import androidx.viewpager.widget.ViewPager


@BindingAdapter(value = ["currentIndex"], requireAll = false)
fun setCurrentItem(viewPager: ViewPager, currentIndex: Int) {
    viewPager.currentItem = currentIndex
}